package com.flashbsm.controller
{
	import com.flashbsm.model.fbsmModel;

	import flash.events.Event;

	import mx.core.UIComponent;
	import mx.events.FlexEvent;
	import mx.controls.Alert;
	import com.flashbsm.events.*;

	public class fbsmController extends UIComponent
	{
		public function fbsmController()
		{
			addEventListener( FlexEvent.CREATION_COMPLETE, setupEventListeners );
		}

		private function setupEventListeners( event:Event ):void
		{
			systemManager.addEventListener( pluginPressedEvent.PLUGIN_PRESSED, handle_pluginPressed );
		}

		public function handle_pluginPressed(event:pluginPressedEvent):void
		{
			Alert.show(event.Categ + " --> " + event.ShortDesc + " --> " + event.LongDesc);
		}
	}
}
